package com.baba.bracelet.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author wulongbo
 * @version 1.0
 * @date 2020/6/12 11:40
 * @description
 */
@Data
@TableName("tbl_sport")//@TableName中的值对应着表名
@ApiModel(value = "运动记录")
public class SportEntity {
    /**
     * 主键id，UUID
     */
    @ApiModelProperty(value = "主键id", name = "id")
    @TableId(type = IdType.UUID)
    private String id;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id", name = "user_id")
    private String userId;


    /**
     * 运动时长(/m)
     */
    @ApiModelProperty(value = "运动时长(/m)",name = "total")
    private Integer total;


    /**
     * 运动距离(/s)
     */
    @ApiModelProperty(value = "运动距离(/s)",name = "distance")
    private Integer distance;


    /**
     * 运动总步数
     */
    @ApiModelProperty(value = "运动总步数",name = "step")
    private Integer step;

    /**
     * 运动记录上传时间
     */
    @ApiModelProperty(value = "运动记录上传时间",name = "create_time")
    private Date createTime;
}
